import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AboutView from '../views/AboutView.vue'
import UserView from '../views/UserView.vue'
import videoMain from '../components/videoMain.vue'
import TodoView from '../routerView/TodoView.vue'
import MyProfileView from '../routerView/MyProfileView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: AboutView
    },
    {
        path: '/user',
        name: 'user',
        component: UserView
    },
    {
        path: '/video',
        name: 'video',
        component: videoMain
    },
    {
        path: '/todolist',
        name: 'todolist',
        component: TodoView
      },
      {
          path: '/MyProfile',
          name: 'MyProfile',
          component: MyProfileView
        },
  ]
})

export default router
